set(sources
pqMyPropertyWidgetForProperty.h
pqMyPropertyWidgetForProperty.cxx
)
set(interfaces)
set(ui_files UIs/boxProperty.ui)


list(APPEND CMAKE_AUTOUIC_SEARCH_PATHS
  "${CMAKE_CURRENT_SOURCE_DIR}/UIs")
#find_package(Qt5 REQUIRED COMPONENTS Widgets)

set(CMAKE_AUTOMOC 1)
set(CMAKE_AUTOUIC 1)
paraview_plugin_add_property_widget(
  KIND WIDGET
  TYPE "my_property_widget_type"
  CLASS_NAME pqMyPropertyWidgetForProperty
  INTERFACES property_interfaces
  SOURCES property_sources)

list(APPEND interfaces
  ${property_interfaces})
list(APPEND sources
  ${property_sources})

paraview_add_plugin(${plugin_name}
  REQUIRED_ON_CLIENT
  VERSION "1.0"
  UI_FILES ${ui_files}
  UI_INTERFACES ${interfaces}
  SOURCES ${sources}
  SERVER_MANAGER_XML BoxWidget.xml
)


target_link_libraries(${plugin_name}
  PRIVATE
     ParaView::pqApplicationComponents)

